#include "wx_pch.h"
#include "resource.h"
void InitXmlResource()
{

    // Check for memory FS. If not present, load the handler:
    {
        wxMemoryFSHandler::AddFile(_T("XRC_resource/dummy_file"), _T("dummy one"));
        wxFileSystem fsys;
        wxFSFile *f = fsys.OpenFile(_T("memory:XRC_resource/dummy_file"));
        wxMemoryFSHandler::RemoveFile(_T("XRC_resource/dummy_file"));
        if (f) delete f;
        else wxFileSystem::AddHandler(new wxMemoryFSHandler);
    }

    wxMemoryFSHandler::AddFile(_T("XRC_resource/resource.h$res_splash.jpg"), xml_res_file_0, xml_res_size_0);
    wxMemoryFSHandler::AddFile(_T("XRC_resource/resource.h$._main.xrc"), xml_res_file_1, xml_res_size_1);
    wxXmlResource::Get()->Load(_T("memory:XRC_resource/resource.h$._main.xrc"));
}
